package cn.iocoder.yudao.module.jikong.controller.app.jkProduct.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 疾控产品表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class JkProductRespVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28845")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "样本产品id", example = "11740")
    @ExcelProperty("样本产品id")
    private String productId;

    @Schema(description = "样本产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("样本产品名称")
    private String name;

    @Schema(description = "样本产品分类", example = "18107")
//    @ExcelProperty("样本产品分类")
    private Long typeId;

    @Schema(description = "样本产品分类", example = "18107")
    @ExcelProperty("样本产品分类")
    private String typeName;

    @Schema(description = "启用状态", example = "2")
    @ExcelProperty(value = "启用状态", converter = DictConvert.class)
    @DictFormat("open_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "产品图片")
    @ExcelProperty("产品图片")
    private String picture;

    @Schema(description = "产品详情")
    @ExcelProperty("产品详情")
    private String detail;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "基础描述")
    private String description;
}
